package com.uni.service;

import com.uni.dao.OrderDao;
import com.uni.dao.OrderDaoImpl;
import com.uni.entity.Order;

import java.util.List;

/**
 * --------------project-------------
 *
 * @Author Unirithe  - Mr.Chao
 * - CSDN:
 * https://blog.csdn.net/Unirithe
 * - GitHub:
 * https://github.com/unirithe
 * @create 2021/12/24 11:25
 * ------------------------------------------
 */
public class OrderServiceImpl implements OrderService{
    OrderDao orderDao = new OrderDaoImpl();
    @Override
    public boolean insertOrder(int uid, int cid) {
        return orderDao.insertOrder(uid, cid);
    }

    @Override
    public boolean deleteOrder(int uid, int cid) {
        return orderDao.deleteOrder(uid, cid);
    }

    @Override
    public List<Order> queryAllByUid(int uid) {
        return orderDao.queryAllByUid(uid);
    }
}
